<?php if (!defined('THINK_PATH')) exit();?>

<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="/style/admin/style.css" />
<link rel="stylesheet" type="text/css" href="/javascript/home/webuploader/webuploader.css" />
<link rel="stylesheet" type="text/css" href="/kindeditor/skins/tinymce.css" />
    <script type="text/javascript">
 	var VAR_MODULE = "<?php echo conf("VAR_MODULE");?>";
	var VAR_ACTION = "<?php echo conf("VAR_ACTION");?>";
	var MODULE_NAME	=	'<?php echo MODULE_NAME; ?>';
	var ACTION_NAME	=	'<?php echo ACTION_NAME; ?>';
	var ROOT = '__APP__';
	var ROOT_PATH = '<?php echo APP_ROOT; ?>';
	var CURRENT_URL = '<?php echo trim($_SERVER['REQUEST_URI']);?>';
	var INPUT_KEY_PLEASE = "<?php echo (L("INPUT_KEY_PLEASE")); ?>";
	var TMPL = '__TMPL__';
	var APP_ROOT = '<?php echo APP_ROOT; ?>';
</script>
<script type="text/javascript" src="/javascript/home/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="/javascript/admin/jquery.timer.js"></script>
<script type="text/javascript" src="/javascript/admin/script.js"></script>
<script type="text/javascript" src="/javascript/admin/lang.js"></script>
<script type="text/javascript" src="/javascript/home/webuploader/webuploader.min.js"></script>
<script type="text/javascript" src="/kindeditor/kindeditor.js"></script>
<script type="text/javascript" src="/javascript/admin/calendar/WdatePicker.js"></script>
<script type="text/javascript" src="/javascript/admin/common.js"></script>
</head>
<body>
<div id="info"></div>

<?php function get_handle($id) { $help = M("Help")->getById($id); $str = "<a href='javascript:edit(".$id.")'>编辑</a>&nbsp;"; if($help['is_fix']==0) { $str .= "<a href='javascript: foreverdel(".$id.")'>删除</a>"; } return $str; } ?>
<div class="main">
<div class="main_title">帮助列表</div>
<div class="blank5"></div>
<div class="button_row">
	<input type="button" class="button" value="<?php echo (L("ADD")); ?>" onclick="add();" />
	<input type="button" class="button" value="<?php echo (L("DEL")); ?>" onclick="foreverdel();" />
</div>
<div class="blank5"></div>
<!-- Think 系统列表组件开始 -->
<table id="dataTable" class="dataTable" cellpadding=0 cellspacing=0 ><tr><td colspan="6" class="topTd" >&nbsp; </td></tr><tr class="row" ><th width="8"><input type="checkbox" id="check" onclick="CheckAll('dataTable')"></th><th width="50px"><a href="javascript:sortBy('id','<?php echo ($sort); ?>','Help','index')" title="按照<?php echo (L("ID")); echo ($sortType); ?> "><?php echo (L("ID")); if(($order) == "id"): ?><img src="/images/admin/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('title','<?php echo ($sort); ?>','Help','index')" title="按照标题<?php echo ($sortType); ?> ">标题<?php if(($order) == "title"): ?><img src="/images/admin/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('is_fix','<?php echo ($sort); ?>','Help','index')" title="按照固定<?php echo ($sortType); ?> ">固定<?php if(($order) == "is_fix"): ?><img src="/images/admin/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th><a href="javascript:sortBy('sort','<?php echo ($sort); ?>','Help','index')" title="按照<?php echo (L("SORT")); echo ($sortType); ?> "><?php echo (L("SORT")); if(($order) == "sort"): ?><img src="/images/admin/<?php echo ($sortImg); ?>.gif" width="12" height="17" border="0" align="absmiddle"><?php endif; ?></a></th><th >操作</th></tr><?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$help): $mod = ($i % 2 );++$i;?><tr class="row" ><td><input type="checkbox" name="key" class="key" value="<?php echo ($help["id"]); ?>"></td><td>&nbsp;<?php echo ($help["id"]); ?></td><td>&nbsp;<a href="javascript:edit('<?php echo (addslashes($help["id"])); ?>')"><?php echo ($help["title"]); ?></a></td><td>&nbsp;<?php echo (get_status($help["is_fix"])); ?></td><td>&nbsp;<?php echo (get_sort($help["sort"],$help['id'])); ?></td><td> <?php echo (get_handle($help["id"])); ?>&nbsp;</td></tr><?php endforeach; endif; else: echo "" ;endif; ?><tr><td colspan="6" class="bottomTd"> &nbsp;</td></tr></table>
<!-- Think 系统列表组件结束 -->
 

<div class="blank5"></div>
<div class="page"><?php echo ($page); ?></div>
</div>
</body>
</html>